// MainFrm.h : interface of the CMainFrame class
//


#pragma once
#include "PropertyGridDlg.h"

class CMainFrame : public CXTPMDIFrameWnd
{
	DECLARE_DYNAMIC(CMainFrame)
public:
	CMainFrame();
	virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
	virtual ~CMainFrame();
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

private:
	CXTPTaskPanelGroup* CreateToolboxGroup(TCHAR* caption);
	void CreateToolboxItems();
protected:
	afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
	afx_msg void OnClose();
	afx_msg void OnDestroy();
	afx_msg void OnCustomize();
	afx_msg LRESULT OnDockingPaneNotify(WPARAM wParam, LPARAM lParam);
	afx_msg LRESULT OnTaskPanelNotify(WPARAM wParam, LPARAM lParam);
	afx_msg LRESULT OnGridNotify(WPARAM wParam, LPARAM lParam);
	DECLARE_MESSAGE_MAP()
// public:
// 	void OnMDIActivate(CMapEditorView* view);
public:
	inline CXTPPropertyGrid* get_property_grid() { return m_PropertyGridDlg.get_property_grid(); }
private:
	CXTPStatusBar  m_StatusBar;
	CXTPDockingPaneManager m_PaneManager;

	CXTPOfficeBorder<CXTPTaskPanel> m_ToolBox;
	CXTPOfficeBorder<CPropertyGridDlg> m_PropertyGridDlg;

	CXTPTabClientWnd m_wndMDIClient;
};
